export const getEnv = (): string => uni.getStorageSync('env')

export const setEnv = (): void => {
  const env = import.meta.env.VITE_DIY_ENV
  uni.setStorageSync('env', env)
}

export const getSessionCode = (): string => uni.getStorageSync('SessionCode')

export const setSessionCode = (SessionCode: string): void => {
  uni.setStorageSync('SessionCode', SessionCode)
}

// server端登录用的token
export const get_access_token = (): string => uni.getStorageSync('access_token')

export const set_access_token = (access_token: string) => {
  uni.setStorageSync('access_token', access_token)
}
